home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…rary 6 (Reseller Edition)
/
Apple Ref. & Pres. Lib.v6.0.toast
/
pc
/
5-Fonts & Software
/
Applications
/
FrameMaker
/
Samples
/
PostScript
/
BigFill.ps
next >
Wrap
Text File
|
1990-06-02
|
1KB
|
38 lines
% BigFill.ps
% fills in entire FrameMaker textrect with a given string, solid fill
%
% args in:
% 1 = string to print in parenthesis ie. (MYSTRING)
% 2 = font desired: /font ie. /Times-Roman
% 3 = mode code where /W = fill width, /H = fill height, /B = fill both
% 4 = rotate value from -180 to +180
% where pos. = counterclockwise, neg = clockwise
% 5 = starting corner: /LL /LR /UR /UL where LL = lower left, etc.
% 6 = grayscale value from 0 to 1 where 0 = black, 1 = white
/gray exch def
/start exch def
/rotval exch def
/mode exch def
findfont /infont exch def
/printme exch def
/hframe exch def % left on stack by Maker
/wframe exch def % ditto
0 0 moveto
/scaler 12 def % avoid PS rounding problems
infont scaler scalefont setfont
/wfont wframe printme stringwidth
pop div scaler mul def
/hfont hframe (X) false charpath flattenpath
pathbbox /temp exch def pop pop pop temp
div scaler mul def
mode /W eq {/hfont wfont def} if
mode /H eq {/wfont hfont def} if
infont [wfont 0 0 hfont 0 0] makefont setfont
newpath 0 0 moveto
start /LR eq {wframe 0 moveto} if
start /UL eq {0 hframe moveto} if
start /UR eq {wframe hframe moveto} if
rotval rotate
gray setgray
printme show